{{define "cms/no_permission.html"}}
{{ template "header" . }}

<body class="gray-bg">
<div class="ip-attack">
    <dl>
        <div class="middle-box text-center  ">
            <h1>{{.code}}</h1>
            <h2 class="font-bold">{{.msg}}</h2>
            <div class="error-desc">
                <dt>
                    页面自动 <a id="href" href="javascript:history.go(-1)">跳转</a> 等待时间： <b id="wait">{{.wait}}</b>
                </dt>
            </div>
        </div>
    </dl>
</div>

{{ template "footer" . }}
<script>
    $(function (){
        var wait = document.getElementById('wait'),
            href = document.getElementById('href').href;
        var interval = setInterval(function(){
            var time = --wait.innerHTML;
            if(time <= 0) {
                location.href = href;
                clearInterval(interval);
            }
        }, 1000);
    });
</script>
{{ end }}